import UnServer.PraseFun;
/*
* copyright by Tophy 2006 10/27
* 
* server communication Message pack
* */

class UnServer.MsgPack{
	public var CommandCode:Number;
	public var CommandArgs:Array;
	public var Data:Array;
	
	public function MsgPack(code:Number){
		init();
		this.CommandCode=code;
	}
	private function init(){
		this.CommandArgs=new Array();
		this.Data=new Array();
		this.CommandCode=-1;
	}
	public function toString():String{
		return this.CommandCode.toString();
	}
	public function toFullString():String{
		return PraseFun.XmlPraseToString(this);
	}
}